#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include <QTimer>
#include "gl_image.h"

#include <opencv2\opencv.hpp>

namespace Ui {
class Dialog;
}

class Dialog : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog(QWidget *parent = nullptr);
    ~Dialog();

private slots:
    void slotTimeOut();

private:
    Ui::Dialog *ui;
    GL_Image* glImage;
    QTimer timer;

	QImage rgba;
	cv::Mat readImg;
};

#endif // DIALOG_H
